<p class="title"><%='Login'.t %></p>

<% if flash[:login_error] %>
<div id="error"><%= flash[:login_error] %></div>
<% end %>

<% if flash[:login_confirmation] %>
<div id="confirmation"><%= flash[:login_confirmation] %></div>
<% end %>
<noscript><p><font color="red"><%= 'It is not strictly required, but please enable javascript.'.t%></font></p></noscript>
<% form_tag do %>
    <%= 'Username'.t %>:<br />
    <%= text_field 'user', 'name', {:style => 'width:15em;', :onkeypress => 'return event.keyCode!=13', :autocomplete => 'off', :onfocus => 'noFieldGotFocus=false'} %><br />
    <br />
    <%= 'Password'.t %>:<br />
    <%= password_field 'login', 'password', {:style => 'width:15em;', :onfocus => 'noFieldGotFocus=false'} %><br />
    <br />
    <%= submit_tag 'Login'.t %>
<% end %>

<%= link_to 'I forgot my password'.t, :action => 'forgot_password' %>